#include "FileWriter.h"

void printArray(float* arr, int size, bool toFile, std::string fileName)
{
	if(!toFile) {
		for(int i=0; i<size; ++i) {
			std::cout<<"["<<i<<"] "<<arr[i]<<std::endl;
		}
		std::cout<<std::endl;
	}
	else {
		std::string filePath(DEST_PATH);
		filePath.append(fileName);
		std::ofstream fs(filePath.c_str());
		for(int i=0; i<size; ++i) {
			fs<<arr[i]<<std::endl;
		}
		fs<<std::endl;
		fs.close();
	}
}
